import re
class Solution:
    def isNumber(self, s: str) -> bool:
        s = s.strip()
                s = s.strip()
        try:
            a = float(s)
        except:
            return False
        else:
            return True


if __name__ == '__main__':
    a = Solution().isNumber("0")
    print(a)